<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>电影列表</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <!-- 解决图片资源加载403的问题 -->
    <meta name="referrer" content="no-referrer" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link href="/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet" />
    <link href="/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet" />
    <link href="/admin/css/animate.css" rel="stylesheet" />
    <link href="/admin/css/style.css?v=4.1.0" rel="stylesheet" />
  </head>

  <body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
      <div class="row">
        <div class="col-sm-12">
          <div class="ibox float-e-margins">
            <div class="ibox-title">
              <h5>电影新增</h5>
            </div>
            <div class="ibox-content">
              <form
                action="/admin/movies/modify/<%= movie.id %>"
                method="POST"
                role="form"
              >
                <div class="form-group">
                  <label for="">名字</label>
                  <input
                    type="text"
                    class="form-control"
                    required
                    name="title"
                    value="<%= movie.title %>"
                    placeholder="请输入影片的名字"
                  />
                </div>

                <div class="form-group">
                  <label for="">类别</label>
                  <input
                    type="text"
                    class="form-control"
                    name="categories"
                    value="<%= movie.categories %>"
                    placeholder="请输入影片的类别"
                  />
                </div>

                <div class="form-group">
                  <label for="">主图</label>
                  <input
                    type="text"
                    class="form-control"
                    name="coverImg"
                    value="<%= movie.coverImg %>"
                    placeholder="请输入影片的主图"
                  />
                </div>

                <div class="form-group">
                  <label for="">链接</label>
                  <input
                    type="text"
                    class="form-control"
                    name="link"
                    value="<%= movie.link %>"
                    placeholder="请输入影片的播放地址"
                  />
                </div>

                <div class="form-group">
                  <label for="">简介</label>
                  <textarea
                    rows="3"
                    class="form-control"
                    name="desc"
                    placeholder="请输入影片的主图"
                  >
<%= movie.desc %></textarea
                  >
                </div>
                <div class="form-group">
                  <label for="">浏览次数</label>
                  <input
                    type="text"
                    class="form-control"
                    name="views"
                    value="<%= movie.views %>"
                    placeholder="请输入影片的浏览次数"
                  />
                </div>
                <button type="submit" class="btn btn-primary">保存</button>
                <a href="/admin/movies" class="btn btn-info">返回</a>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 全局js -->
    <script src="/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/admin/js/bootstrap.min.js?v=3.3.6"></script>
  </body>
</html>
